﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Game : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (Session["Username"] != null)
            {
                string str = Session["name"].ToString();
                Label1.Text = "Најавени сте како " + str;
                Image1.ImageUrl = Session["Picture"].ToString();
            }
        }
        catch
        {
            Response.Redirect("Login.aspx");
            Label1.Text = "Greska";
        }
    }
    protected void logout_Click(object sender, EventArgs e)
    {
        Session["Username"]=null;
        Session["Name"]=null;
        Session["Picture"] = null;
        Response.Redirect("Login.aspx");
    }
}